<?php


namespace api\zmt\validate;


use think\Validate;

class addressValidate extends Validate
{
    protected $rule=[
        'name' => 'require',
        'mobile'=>'require|mobile',
        'location' => 'require',
        'address' => 'require',
    ];
    protected $message=[
        'require|name' => '请填写名字',
        'require|mobile' => '请填写手机号',
        'require|location' => '请填写省市区',
        'require|address' => '请填写详细地址',
    ];
    protected $scene=[
        'add' => ['name,mobile,location,address']
    ];
}